package cn.zt.service.impl;

import cn.zt.common.Result;
import cn.zt.domain.TSavingsRate;
import cn.zt.mapper.TSavingsRateMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zt.service.TSavingsRateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 21889
* @description 针对表【t_savings_rate(存起利率表)】的数据库操作Service实现
* @createDate 2024-09-10 16:17:45
*/
@Service
public class TSavingsRateServiceImpl extends ServiceImpl<TSavingsRateMapper, TSavingsRate>
    implements TSavingsRateService{

    @Resource
    private TSavingsRateMapper savingsRateMapper;

    @Override
    public Result select() {
        List<TSavingsRate> tSavingsRates = savingsRateMapper.selectList(Wrappers.<TSavingsRate>lambdaQuery());
        return Result.success(tSavingsRates);
    }
}




